package com.jsmtr.rms.service;

import java.util.List;
import java.util.Map;

import com.jsmtr.rms.entity.*;

public interface ISysAdminService {
    Map<String, Object> selectBaseJobs(int page, int perpage, String code, String name, String deptcode) throws Exception;

    Map<String, Object> selectBaseDepartments(int page, int perpage, String code, String name, String fullname) throws Exception;

    BaseJob getjobbycode(String jobcode) throws Exception;

    Map<String, Object> getAllJobs(int page, int perpage) throws Exception ;

    BaseJob getJobById(Integer id) throws Exception;

    BaseJob getjobByName(String jobName) throws Exception;

    List<BaseData> getPoliticals() throws Exception;

    Map<String, Object> selectBaseUsers(int page, int perpage, String code, String name, String deptcode) throws Exception;

    BaseUser getUser(String ucode) throws Exception;

    BaseUser getUserById(String id) throws Exception;

    List<BaseUser> getUsers(String[] ids) throws Exception;

    List<BaseUserRole> getBaseUserRoles(String uid) throws Exception;

    List<BaseUserRole> getUserRoles(String rid) throws Exception;

    List<String> getBaseUserRole(String uid) throws Exception;

    Map<String, Object> selectBaseRoles(int page, int perpage, String rname) throws Exception;

    Map<String, Object> selectBaseRoleUsers(int page, int perpage, String id, String code, String name, String deptcode) throws Exception;

    BaseRole getRole(String id) throws Exception;

    List<BaseRole> getRoles() throws Exception;

    List<BaseRole> getRoles(String[] ids) throws Exception;

    List<BaseModular> getBaseModulars(int parentid) throws Exception;

    List<BaseModular> getBaseModulars(String rid) throws Exception;

    List<String> getBaseModularFunctions(String rid) throws Exception;

    List<BaseRoleModular> getBaseRoleModulars(String rid) throws Exception;

    List<ProjectInfo> getProjectInfo() throws Exception;

    List getCount(String field, String year) throws Exception;

    List getMsCount(String year) throws Exception;

    List getBsCount(String year) throws Exception;

    List getUserByUcode(String ucode) throws Exception;
}